home *** CD-ROM | disk | FTP | other *** search
/ Aminet 19 / Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso / Aminet / game / patch / AB3DTrainer.lha / AB3DTrainer / Install_AB3DTrainer < prev    next >
Text File  |  1997-03-20  |  3KB  |  134 lines

  1. ;
  2. ;$VER: AB3DTrainer Installer script v2.00 (c) 1997 John Girvin
  3. ;
  4.  
  5. (welcome "Welcome to the AB3DTrainer Installer v2.00")
  6. (set @app-name "AB3DTrainer")
  7. (set #GDESTDIR "DH0:")
  8.  
  9. (set #GUSEGUI 0)
  10. (set #GUSEHACK 0)
  11. (set #GDEFTRAINERS 0)
  12.  
  13. (if
  14.     (<> @user-level 2)
  15.     (abort "You must select 'Expert' user level")
  16. )
  17.  
  18. (message "\n\nWelcome to the AB3DTrainer Installer\n"
  19.          "(c) 1997 John Girvin\n\n"
  20.          "Please read the documentation thoroughly before"
  21.          " attempting to use this installer!\n\n"
  22.          "This is version 2.00\n\n"
  23.          "Click 'Proceed' to begin."
  24. )
  25.  
  26. (set #GDESTDIR
  27.     (askdir
  28.         (prompt "Where do you have Alien Breed 3D installed?\n"
  29.                 "(select the directory containing the 'abd.pk' program)"
  30.         )
  31.         (help @askdir-help)
  32.         (default #GDESTDIR)
  33.     )
  34. )
  35. (set @default-dest #GDESTDIR)
  36.  
  37. (set #GUSEGUI
  38.     (askchoice
  39.         (prompt "Do you want the cheat GUI to appear every time you load AB3DTrainer?\n"
  40.                 "(this may be changed later by editing the tooltypes of AB3DTrainer)"
  41.         )
  42.         (help @askchoice-help)
  43.         (choices "Yes - use the GUI" "No  - don't use the GUI")
  44.         (default #GUSEGUI)
  45.     )
  46. )
  47.  
  48. (set #GUSEHACK
  49.     (askchoice
  50.         (prompt "Do you want to use HackAB3D by default?\n"
  51.                 "(this may be changed later by editing the tooltypes of AB3DTrainer)"
  52.         )
  53.         (help @askchoice-help)
  54.         (choices "Yes - use HackAB3D" "No  - don't use HackAB3D")
  55.         (default #GUSEHACK)
  56.     )
  57. )
  58.  
  59. (set #GDEFTRAINERS
  60.     (askoptions
  61.         (prompt "Please select the default trainers to use:\n"
  62.                 "(these may be changed later by either\n"
  63.                 "editing the tooltypes of AB3DTrainer\n"
  64.                 "or using the cheat GUI)"
  65.         )
  66.         (help @askoptions-help)
  67.         (choices "Infinite energy"
  68.                  "Infinite ammunition"
  69.         )
  70.         (default #GDEFTRAINERS)
  71.     )
  72. )
  73.  
  74. (copyfiles
  75.     (prompt "Copying trainer program")
  76.     (help @copyfiles-help)
  77.     (source "AB3DTrainer")
  78.     (dest #GDESTDIR)
  79.     (nogauge)
  80.     (noposition)
  81.     (optional fail force)
  82. )
  83.  
  84. (copyfiles
  85.     (prompt "Copying trainer program icon")
  86.     (help @copyfiles-help)
  87.     (source "AB3DTrainer_icon")
  88.     (newname "AB3DTrainer.info")
  89.     (dest #GDESTDIR)
  90.     (nogauge)
  91.     (optional fail force)
  92. )
  93.  
  94. (if (= #GUSEGUI 1)
  95.     (tooltype
  96.         (prompt "Setting trainer program icon tooltypes")
  97.         (dest (tackon #GDESTDIR "AB3DTrainer"))
  98.         (settooltype "NOGUI" "")
  99.     )
  100. )
  101.  
  102. (if (= #GUSEHACK 0)
  103.     (tooltype
  104.         (prompt "Setting trainer program icon tooltypes")
  105.         (dest (tackon #GDESTDIR "AB3DTrainer"))
  106.         (settooltype "HACKAB3D" "")
  107.     )
  108. )
  109.  
  110. (if (<> 0 (IN #GDEFTRAINERS 0))
  111.     (tooltype
  112.         (prompt "Setting trainer program icon tooltypes")
  113.         (dest (tackon #GDESTDIR "AB3DTrainer"))
  114.         (settooltype "INF_ENERGY" "")
  115.     )
  116. )
  117.  
  118. (if (<> 0 (IN #GDEFTRAINERS 1))
  119.     (tooltype
  120.         (prompt "Setting trainer program icon tooltypes")
  121.         (dest (tackon #GDESTDIR "AB3DTrainer"))
  122.         (settooltype "INF_AMMO" "")
  123.     )
  124. )
  125.  
  126. (copyfiles
  127.     (prompt (cat "Copying trainer loader"))
  128.     (help @copyfiles-help)
  129.     (source "AB3DTBoot")
  130.     (dest #GDESTDIR)
  131.     (nogauge)
  132.     (optional fail force)
  133. )
  134.